{extend name="public/father" /}

{block name="main"}
<style>
    .layui-form-pane .layui-form-text{padding: 0 10px;}
    .layui-form-pane .layui-form-label{background: none !important;padding-left: 2px;border: 0;color:#000;}
    .layui-form-pane .layui-form-text input, .layui-form-pane .layui-form-text textarea{border-radius: 3px !important;}
    .allimgs{display:flex;}
    .allimgs img{width:50px}
</style>

<div class="layui-card">
    <div class="layui-card-body">

        <form class="layui-form layui-form-pane" method="post" style="margin-top: 10px;">

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">标题</label>
                <div class="layui-input-block">
                    <input type="text" name="title" placeholder="标题" required lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item layui-form-text upload">
                <label class="layui-form-label">展示图片</label>
                <div class="layui-input-block">
                    <input type="text" name="img" value="" required lay-verify="required" placeholder="展示图片" autocomplete="off" class="layui-input upload-input">
                    <div style="position: absolute;right: 0px;top: 0px;">
                        <img class="upload-img" src="" style="max-height: 36px;" onclick="showImg(this.src);"><button type="button" class="layui-btn layui-btn-primary upload-button"><i class="layui-icon layui-icon-upload"></i>上传图片</button>
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">音频链接</label>
                <div class="layui-input-block">
                    <input type="text" name="audio" placeholder="音频链接" autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="create">立即保存</button>
                </div>
            </div>
        </form>

    </div>
</div>
<script src="/static/ueditor/ueditor.config.js"></script>
<script src="/static/ueditor/ueditor.all.min.js"></script>
<script src="/static/ueditor/lang/zh-cn/zh-cn.js"></script>

<script>


UE.getEditor('content', {
    initialFrameWidth:"100%", //初始化选项
    initialFrameHeight:"400" //初始化选项
})

UE.getEditor('pinglun', {
    initialFrameWidth:"100%", //初始化选项
    initialFrameHeight:"400" //初始化选项
})

</script>
{/block}
